<script type='text/javascript'>
        function fastSub() {
                $('#formx').attr('action', '{:U("Product/location_detail_fast")}');
                $('#formx').submit();
        }
        function reback(){
                $('#formx').attr('action', '{:U("Product/location_detail_add")}');                
        }
</script>
<div class="bjui-pageContent" >
        <div data-layout-h="0">
                <!-- 内容区 -->
                <form action="{:U('Product/location_detail_add')}" id="formx" class="pageForm nice-validator n-red"   data-loadingmask='false' data-toggle="validate" novalidate="novalidate" method="post" >
                        <input type="hidden" name="id" value="{$_GET.id|default=''}" />
                        <!-- navtab类型判断 -->
                        <input type="hidden" name="navTabname" value="Product/location_detail" />
                        <table  style="margin-top: 20px;">
                                <tr >
                                        <td><label style='margin-left:40px;'>目的地选择：</label></td>
                                        <td>
                                                <input type="hidden" name="location.id"  value="{$location_detail.location_id|default=''}" />
                                                <input type="text" data-title='选择目的地' name="location.name" data-rule='required' value="{$location_detail.location_name|default=''}" size="15" data-toggle="lookup" data-url="{:U('Pub/get_location_single')}" data-group="location" data-width="300" data-height="400">
                                        </td>

                                </tr>
                                <tr >
                                        <td><label style='margin-left:40px;'>状态：</label></td>
                                        <td>
                                                <select name="status" data-toggle="selectpicker"  >
                                                        <option value='1' {eq name='location_detail.status' value='1'} selected="selected" {/eq} >启用</option>
                                                        <option value='0' {eq name='location_detail.status' value='0'} selected="selected" {/eq}>禁用</option>
                                                </select>
                                        </td>

                                </tr>
                                <tr >
                                        <td><label style='margin-left:40px;'>内容：</label></td>
                                        <td>
                                                <div style="display: inline-block; margin-top:10px; vertical-align: middle;">
                                                        <textarea name="content" id="j_form_content" class="j-content" style="width: 800px;" data-toggle="kindeditor" data-rule='required' data-min-height="600">{$location_detail.content|default=''}</textarea>
                                                </div>
                                        </td>

                                </tr>
                                <tr>
                                        <td>&nbsp;</td>
                                        <td><a style="position: fixed; right: 20px; bottom: 90px;" onclick="fastSub()"  data-toggle="doajax"  class="btn btn-red">快速保存</a>

                                                <div style="position: fixed; right: 20px; bottom: 60px;" class="alert alert-warning form-inline"><i class="fa fa-warning"></i>为防止登录超时请常用快速保存按钮</div></td>
                                </tr>


                        </table>
                </form>
        </div>

</div>
<div class="bjui-pageFooter" border='none'>
        <ul>
                <li><button type="button" class="btn btn-close">关闭</button></li>
                <li><button type="submit" onclick="reback()" class="btn btn-default">提交</button></li>
        </ul>
</div>
